delphi shr和shl的作用
x:=x shl 1 二進制數向左移1位,尾部補1個零,相當於x:=x*2;x:=x shl 2 二進制數向左移2位,尾部補2個零,相當於x:=x*4;...x:=x shl n 二進制數向左移n位, ...
x:=x shl 1 二進制數向左移1位,尾部補1個零,相當於x:=x*2;x:=x shl 2 二進制數向左移2位,尾部補2個零,相當於x:=x*4;...x:=x shl n 二進制數向左移n位, ...
delphi 按位運算 not and or xor shl shr unit Unit1; interface ...